home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / tweak16b.zip / TWKUSER.H < prev    next >
C/C++ Source or Header  |  1993-06-07  |  1KB  |  46 lines

  1. #ifndef _TwkUser_h
  2. #define _TwkUser_h
  3.  
  4. /*
  5.     xxxxADDR defines the base port number used to access VGA component xxxx,
  6.     and is defined for xxxx =
  7.         ATTRCON        -    Attribute Controller
  8.         MISC        -    Miscellaneous Register
  9.         VGAENABLE    -    VGA Enable Register
  10.         SEQ            -    Sequencer
  11.         GRACON        -    Graphics Controller
  12.         CRTC        -    Cathode Ray Tube Controller
  13.         STATUS        -    Status Register
  14. */
  15.  
  16. #define ATTRCON_ADDR    0x3c0
  17. #define MISC_ADDR        0x3c2
  18. #define VGAENABLE_ADDR    0x3c3
  19. #define SEQ_ADDR        0x3c4
  20. #define GRACON_ADDR        0x3ce
  21. #define CRTC_ADDR        0x3d4
  22. #define STATUS_ADDR        0x3da
  23.  
  24.  
  25. /*
  26.     Note that the following C definition of Register is not compatible
  27.     with the C++ definition used in the source code of TWEAK itself!
  28. */
  29.  
  30. typedef struct
  31.     {
  32.     unsigned port;
  33.     unsigned char index;
  34.     unsigned char value;
  35.     } Register;
  36.  
  37. typedef Register *RegisterPtr;
  38.  
  39. void readyVgaRegs(void);
  40. void outRegArray(Register *r, int n);
  41. void outReg(Register r);
  42. int loadRegArray(char *fpath, RegisterPtr *array);
  43.  
  44. #endif
  45.  
  46.